import java.util.ArrayList;
import java.util.*;
import java.util.concurrent.*;
public class ExecuteRealisation {
    primeNumbers pN=new primeNumbers();
    Input input=new Input();
    public void getResultList() throws ExecutionException, InterruptedException {
        ExecutorService executor = Executors.newFixedThreadPool(input.getNumberOfThreads());
        List<Future<List<Boolean>>> list = new ArrayList<Future<List<Boolean>>>();
        Callable<List<Boolean>> worker = new Call();
        Future<List<Boolean>> submit = executor.submit(worker);
        list.add(submit);
        pN.result(list);
        executor.shutdown();
    }

}
